package com.hurl.waguji.base.dataprocess;

import java.util.Date;

public class ProcessResult {
	public ProcessResult(ProcessIdentifier id){
		this.id=id;
	}
	
	public ProcessIdentifier getId() {
		return id;
	}

	public void setId(ProcessIdentifier id) {
		this.id = id;
	}

	public String getTitle() {
		return id.getTitle();
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public Throwable getError() {
		return error;
	}
	public void setError(Throwable error) {
		this.error = error;
	}
	public boolean isSuccess() {
		return isSuccess;
	}
	public void setSuccess(boolean isSuccess) {
		this.isSuccess = isSuccess;
	}
	public Integer getCount() {
		return count;
	}
	public void setCount(Integer count) {
		this.count = count;
	}
	
	public String toString(){
		return "{downloadTitle:"+id.getTitle()+",startTime:"
				+startTime+",endTime:"+endTime+",isSuccess:"+isSuccess
				+",error:"+error+"count:"+count+"}";
	}
	private ProcessIdentifier id;
	private Date startTime;
	private Date endTime;
	private Throwable error;
	private boolean isSuccess;
	private Integer count;
	private Date rq;
	public Date getRq() {
		return rq;
	}
	public void setRq(Date rq) {
		this.rq = rq;
	}
}
